$dark-green: #183e4b;
.flex {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: stretch;
}

.flex1 {
  flex-grow: 1;
}

.device-container {
  float: left;
  height: 100%;
  line-height: inherit;
  position: relative;
  .device-info {
    align-items: center;
  }
  .device-icon {
    line-height: 0;
    height: 100%;
    font-size: 32px;
    text-align: center;
    padding: 15px 20px;
    width: 180px;
    border-right: 1px dashed #cccccc;
    position: relative;
    .device-extra {
      position: absolute;
      right: -21px;
      bottom: -21px;
      width: 0;
      height: 0;
      border: 20px solid transparent;
      border-left-color: $dark-green;
      transform: rotate(45deg);
      div {
        position: absolute;
        right: 10px;
        bottom: -4px;
        content: '';
        width: 10px;
        height: 10px;
        border-right: 1px solid #ffffff;
        border-bottom: 1px solid #ffffff;
        transform: rotate(-45deg);
      }
    }
    .device-logout {
      width: 100%;
      height: 42px;
      font-size: 15px;
      line-height: 42px;
      padding: 0 10px;
      text-align: left;
      cursor: pointer;
      position: absolute;
      left: 0;
      bottom: -42px;
      z-index: 1000;
      background-color: #ffffff;
      box-shadow: 0 1px 0.5px 1px #eeeeee;
      &:hover {
        background-color: #f5f5f5;
      }
    }
  }
  .device-name {
    font-size: 12px;
    line-height: 20px;
  }
  .device-data {
    line-height: 28px;
    .data-name {
      margin-left: 25px;
      display: inline-block;
      text-align: center;
      vertical-align: middle;
      i {
        font-size: 24px;
      }
    }
  }
  .device-cpu-mem {
    font-size: 30px;
    padding: 0 30px;
    line-height: 80px;
    margin-left: 10px;
    &:hover {
      background-color: #f5f5f5;
      cursor: pointer;
    }
  }
}
